package com.class06;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;
@WebServlet("/servletB")
public class ServletB implements Servlet {

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("ServletB初始化");
    }

    @Override
    public ServletConfig getServletConfig() {
        System.out.println("ServletB获取ServletConfig");
        return null;

    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("ServletB执行service方法");
    }

    @Override
    public String getServletInfo() {
        System.out.println("ServletB获取ServletInfo");
        return "";
    }

    @Override
    public void destroy() {
        System.out.println("ServletB销毁");
    }
}
